package cn.wolfcode.crm.mapper;

import cn.wolfcode.crm.domain.Permission;
import cn.wolfcode.crm.query.ObjectQuery;

import java.util.List;

public interface PermissionMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Permission record);

    Permission selectByPrimaryKey(Long id);

    List<Permission> selectAll();

    int updateByPrimaryKey(Permission record);

    int queryForCount(ObjectQuery qo);

    List<Permission> queryForList(ObjectQuery qo);
    //TODO 待检测
    List<Permission> queryPermissionByRoleId(Long roleId);

    List<String> queryPermissionResourceByEmpId(Long id);
}